﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CameraParentClassLibrary;//引用父类相机库的命名空间

namespace CameraFactoryClassLibrary
{
    public class CameraFactory
    {
        public static CameraParent GetCameraObj()
        {
            string[] ReadInfoArray = System.IO.File.ReadAllLines("CameraInfo.txt");
            string dllPath = ReadInfoArray[0];
            string classFullName = ReadInfoArray[1];

            return  (CameraParent)System.Reflection.Assembly.Load(dllPath).CreateInstance(classFullName);
        }

    }
}
